{% extends 'layout.html' %}

{% block content %}

    <div class="panel panel-default container">
        <div class="panel-heading">
            <h3 class="panel-title">新建用户</h3>
        </div>
        <div class="panel-body">

        </div>
        <form method="post">
            {% csrf_token %}


            <div class="form-group">
                <label>姓名</label>
                <input type="text" class="form-control" name="user" placeholder="姓名">
            </div>
            <div class="form-group">
                <label>密码</label>
                <input type="text" class="form-control" name="pwd" placeholder="密码">
            </div>
            <div class="form-group">
                <label>年龄</label>
                <input type="text" class="form-control" name="age" placeholder="年龄">
            </div>
            <div class="form-group">
                <label>余额</label>
                <input type="text" class="form-control" name="ac" placeholder="余额">
            </div>
            <div class="form-group">
                <label>创建时间</label>
                <input type="text" class="form-control" name="ctime" placeholder="创建时间">
            </div>

            <div class="form-group">
                <label>性别</label>
                <select class="form-control" name="gd">
                    {% for item in gender_choices %}
                        <option value="{{ item.0 }}">{{ item.1 }}</option>
                    {% endfor %}

                </select>
            </div>

            <div class="form-group">
                <label>所属部门</label>
                <select class="form-control" name="dp">
                    {% for item in depart_list %}
                        <option value="{{ item.id }}">{{ item.title }}</option>
                    {% endfor %}

                </select>
            </div>

            <button style="margin-top: 10px ;margin-bottom: 10px;" type="submit" class="btn btn-primary">提 交</button>

        </form>
    </div>

{% endblock %}







